﻿// Example header text. Can be configured in the options.
using System;
using System.Linq;

namespace vtech_frameWorks.Library
{
    public class ClsConstants
    {
        #region CommonStatus
        public class CommonStatus
        {
            public const string ACCEPTED = "ACCEPTED";//cho phép
            public const string APPROVED = "APPROVED";
            public const string DELETE = "DELETE";
            public const string DELETED = "DELETED";
            public const string DRAFT = "DRAFT";
            public const string NEW = "NEW";
            public const string No = "No";
            public const string NOTAPPROVE = "NOTAPPROVE";
            public const string PUBLISHED = "PUBLISHED";
            public const string REJECTED = "REJECTED";
            public const string STOP = "STOP";
            public const string UPDATE = "UPDATE";
            public const string WAITINGPROCESS = "WAITINGPROCESS";
            public const string Yes = "Yes";
        }
        #endregion

        #region UserStatus
        public class UserStatus
        {
            public const string Locked = "Khóa";
            public const string Active = "Hoạt động";
            public const string Unactive = "Chưa kích hoạt";
        }
        #endregion

        #region ConfigKey
        public class ConfigKey
        {
            /// <summary>
            /// Chuỗi kết nối đến csdl
            /// </summary>
            public const string SqlConnectionString = "SqlConnectionString";
            public const string AdminGroupID = "AdminGroupID";
            public const string Captcha = "Captcha";
            public const string CaptchaKey = "CaptchaKey";
            public const string CaptchaSalt = "CaptchaSalt";

            /// <summary>
            /// Tên ứng dụng: 
            /// áp dụng lấy đường dẫn của báo cáo
            /// </summary>
            public const string SolutionName = "HospitalManagement";
            /// <summary>
            /// Định nghĩa đơn vị tiền tệ
            /// </summary>
            public const string Currency = "Currency";
            /// <summary>
            /// Định dạng hiển thị Date
            /// </summary>
            public const string DisplayDateFormat = "DisplayDateFormat";
            /// <summary>
            /// Định dạng hiển thị DateTime
            /// </summary>
            public const string DisplayDateTimeFormat = "DisplayDateTimeFormat";
            /// <summary>
            /// Định dạng hiển thị số thực
            /// </summary>
            public const string DisplayDecimalFormat = "DisplayDecimalFormat";
            /// <summary>
            /// Định dạng hiển thị số nguyên
            /// </summary>
            public const string DisplayNumberFormat = "DisplayNumberFormat";
            public const string LogLevel = "LogLevel";
            /// <summary>
            /// Ngày nhỏ nhất thiết lập trong config
            /// </summary>
            public const string MinDate = "MinDate";
            public const string PageSize = "PageSize";
            public const string PageViewSize = "PageViewSize";
            public const string Security = "Security";
            public const string SystemLayout = "System.Layout";
            public const string SystemLayoutFile = "System.Layout.File";
            //ok
            public const string SMTPMailServer = "SMTPMailServer";
            public const string SMTPMailServerPort = "SMTPMailServerPort";
            public const string SMTPMailServerSecure = "SMTPMailServerSecure";

            public const string POP3Domain = "POP3Domain";
            public const string POP3MailServer = "POP3MailServer";
            public const string POP3MailServerPort = "POP3MailServerPort";
            public const string POP3MailServerSecure = "POP3MailServerSecure";
            //ok
            public const string SystemEmail = "SystemEmail";
            public const string SystemEmailAlias = "SystemEmailAlias";
            public const string SystemEmailLoginname = "SystemEmailLoginname";
            public const string SystemEmailPasword = "SystemEmailPasword";
            public const string TimeCaching = "TimeCaching";
            public const string UserGroupID = "UserGroupID";
            public const string ThumbnailWidth = "ThumbnailWidth";
            public const string ThumbnailHeight = "ThumbnailHeight";
            public const string ImageBlank = "ImageBlank";
            public const string CopyrightLink = "CopyrightLink";
            public const string CopyrightName = "CopyrightName";
            public const string PoweredLink = "PoweredLink";
            public const string PoweredName = "PoweredName";
        }
        #endregion

        #region ParameterName
        public abstract class ParameterName
        {
            public const string COPY_ID = "CopyId";
            public const string DOC_ID = "DocId";
            public const string FILE = "File";
            public const string FILEPATH = "FilePath";
            public const string GOBACK = "Goback";
            public const string PARENT_ID = "PId";
            public const string GROUP_ID = "GId";
            public const string USER_ID = "UId";
            public const string HEIGHT = "Height";
            public const string KEY = "Key";
            public const string KEYWORD = "Keyword";
            public const string LASTURL = "LastUrl";
            public const string MESSAGE = "Msg";
            public const string PAGE = "Page";
            public const string REDIRECT = "redi";
            public const string RETURN_URL = "ReturnUrl";
            public const string RETURN_VIEW = "ReturnView";
            public const string STATUS = "Status";
            public const string SAVE_SUCCESS = "Save";
            public const string WIDTH = "Width";
            public const string WIDTH2 = "w";
            public const string HEIGHT2 = "h";
        }
        #endregion

        #region LogLevel
        public enum LogLevel
        {
            All,
            Info,
            Error,
            System,
            None
        }
        #endregion

        #region Connector String SQL
        public abstract class ConnectorString
        {
            public const string AND_STRING = " AND ";
            public const string HAVING_STRING = " HAVING ";
            public const string OR_STRING = " OR ";
            public const string WHERE_STRING = " WHERE ";
        }
        #endregion

        #region Session

        public abstract class Session
        {
            public const string LOGGING_FROM_DATE = "LOGGING_FROM_DATE";
            public const string LOGGING_LEVEL = "LOGGING_LEVEL";
            public const string LOGGING_TO_DATE = "LOGGING_TO_DATE";
            public const string LOGGING_USER = "LOGGING_USER";
            public const string SYSTEM_LAYOUT = "SYSTEM_LAYOUT";
            public const string SKIN = "Skin";
            public const string MENU = "MENU";
            public const string SYSTEM_LAYOUT_DATA = "SYSTEM_LAYOUT_DATA";
            public const string SOURCE_URL = "SOURCE_URL";
            public const string USER = "USER";
            public const string USER_AVATAR = "USER_AVATAR";
            public const string USER_EMAIL = "USER_EMAIL";
            public const string USER_FULLNAME = "USER_FULLNAME";
            public const string USER_GROUP = "USER_GROUP";
            public const string USER_ID = "USER_ID";
            public const string USER_LASTLOGIN = "USER_LASTLOGIN";
            public const string USER_LOGINNAME = "USER_LOGINNAME";
            public const string USER_PASSWORD = "USER_PASSWORD";
            public const string USER_STATUS = "USER_STATUS";
            public const string USER_POLICY = "USER_POLICY";
            public const string USERS_ONLINE = "USERS_ONLINE";
            public const string USERS_VISIT = "USERS_VISIT";

            public class Data
            {
                public const string GetLogging = "GetLogging";
                public const string USERS = "USERS";
            }
        }

        #endregion

        #region Message

        public abstract class Message
        {
            public const string CantNotCreateThumb = "CantNotCreateThumb";
            public const string CantSendEmail = "CantSendEmail";
            public const string InvalidText = "InvalidText";
            public const string ItemDoesntExist = "ItemDoesntExist";
            /// <summary>
            /// Không thể truy cập
            /// </summary>
            public const string NoRightToAccess = "NoRightToAccess";
            /// <summary>
            /// Không thể tạo mới
            /// </summary>
            public const string NoRightToCreate = "NoRightToCreate";
            /// <summary>
            /// Không thể xóa
            /// </summary>
            public const string NoRightToDelete = "NoRightToDelete";
            /// <summary>
            /// Người dùng ko thể đăng nhập
            /// </summary>
            public const string UserDoesntLogin = "UserDoesntLogin";

            public const string UserDoesntExist = "UserDoesntExist";
            public const string UserLoginFailed = "UserLoginFailed";
            public const string UserLoginSuccess = "UserLoginSuccess";
            public const string UserLogoutFailed = "UserLogoutFailed";
            public const string UserLogoutSuccess = "UserLogoutSuccess";
            public const string UserLocked = "UserLocked";
            /// <summary>
            /// Người dùng đã bị khóa
            /// </summary>
            public const string UserTryLocked = "UserTryLocked";
        }

        #endregion

        #region FormNames

        public abstract class FormNames
        {
            public const string ChangePassword = "~/ChangePassword.aspx";
            public const string FindPassword = "~/FindPassword.aspx";
            public const string CtrlPanel = "~/CtrlPanel.aspx";
            public const string Default = "~/Default.aspx";
            public const string Root = "~/";
            public const string Error = "~/Error.aspx";
            public const string Help = "~/Help.aspx";
            public const string Login = "~/Login.aspx";
            public const string Logout = "~/Logout.aspx";
            public const string SystemInfo = "~/SystemInfo.aspx";
            public const string UserInfo = "~/UserInfo.aspx";
        }
        #endregion
    }
}